package com.xdxc.feign;

import com.xdxc.response.Result;
import com.xdxc.vo.QuestionWithOptionsVo;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "xdxc-question")

public interface QuestionFeign {
    @GetMapping("/question-service")
    Result<QuestionWithOptionsVo> batchQuestionPage(
            @RequestParam(defaultValue = "1") int page,
            @RequestParam(defaultValue = "5") int size);
}
